
extends Area2D

var controller

func _ready():
	controller = get_node("/root/Controller")
	$Sprite.hide()

func _on_CameraAnchor_body_enter( body ):
	if (body is Player):
		controller.cam_target = self

func _on_CameraAnchor_body_exit( body ):
	if (body is Player and controller.root.load_state == 0):
		controller.cam_target = body
